package com.yaj.mesif.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author wei
 * @since 2021-08-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("TI_ITEM")
@ApiModel(value="TiItem对象Dto", description="")
public class TiItemDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "営業単位コード")
    @TableId(value = "OPERATING_UNIT_CODE", type = IdType.NONE)
    private String operatingUnitCode;

    @ApiModelProperty(value = "在庫組織コード")
    @TableField("ORGANIZATION_CODE")
    private String organizationCode;

    @ApiModelProperty(value = "品目番号")
    @TableField("SEGMENT1")
    private String segment1;

    @ApiModelProperty(value = "品目摘要")
    @TableField("DESCRIPTION")
    private String description;

    @ApiModelProperty(value = "ユーザ品目タイプ")
    @TableField("ITEM_TYPE_CODE")
    private String itemTypeCode;

    @ApiModelProperty(value = "ロットトレース対象フラグ")
    @TableField("TRACE_FLAG")
    private String traceFlag;

    @ApiModelProperty(value = "ROHS対象フラグ")
    @TableField("ROHS_FLAG")
    private String rohsFlag;

    @ApiModelProperty(value = "有効開始日")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("ACTIVE_DATE")
    private String activeDate;

    @ApiModelProperty(value = "失効予定日")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("EXPIRED_DATE")
    private String expiredDate;

    @ApiModelProperty(value = "国内外識別フラグ")
    @TableField("SALEDEST_FLAG")
    private String saledestFlag;

    @ApiModelProperty(value = "レコード作成者ID")
    @TableField("CREATED_BY")
    private String createdBy;
}
